package string;
//把字符串两边的空白去掉
public class TrimDemo {
    public static void main(String[] args) {
        String s1 = "  123abc   ";
        String trim = s1.trim();
        System.out.println(s1);
        System.out.println(trim);

    }
}
